package org.setamv.springcloud.feign.contract;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 将自定义的Contract注册为Bean，替换spring cloud默认使用的Contract {@linkplain org.springframework.cloud.netflix.feign.support.SpringMvcContract}
 */
@Configuration
public class ContractConfiguration {

    @Bean
    public ExSpringMVCContract contract() {
        return new ExSpringMVCContract();
    }
}
